#include "readdatathread.h"

ReadDataThread::ReadDataThread(QObject *parent) : QThread(parent)
{

}


void ReadDataThread::run()
{
    int i = 0;
    while (true) {
        QThread::msleep(1000);
        emit received(i);
        emit receivedMyData({i, "test my data"});
        i++;
    }
}
